package cn.gok.common.entity.backstage;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor //无参构造
@AllArgsConstructor//全参构造
@TableName(value = "sys_user")
public class SysUser {

    @TableId(value = "USER_ID")
    private Long userId;

    @TableField(value = "USER_NAME")
    private String userName;

    @TableField(value = "PASSWORD")
    private String password;

    @TableField(value = "REAL_NAME")
    private String realName;

    @TableField(value = "SALT")
    private String salt;

    @TableField(value = "EMAIL")
    private String email;

    @TableField(value = "MOBILE")
    private String mobile;

    @TableField(value = "STATUS")
    @TableLogic(value = "1",delval = "0")
    private Byte status;

    @TableField(value = "DEPT_NAME")
    private String deptName;

    @TableField(value = "REMARK")
    private String remark;

    @TableField(value = "CREATE_TIME")
    private Date createTime;

    @TableField(value = "CREATE_BY")
    private String createBy;

    @TableField(value = "UPDATE_TIME")
    private Date updateTime;

    @TableField(value = "UPDATE_BY")
    private String updateBy;
}